{% extends '../common/common.html' %}
{% block main %}

<div class="admin-box">
    <div class="crumbs-nav">
        <a href="/admin">管理首页</a> &gt; <span>分类列表</span>
    </div>
    <h2 class="admin-title">分类列表</h2>
    <div class="admin-table">
        <table>
            <tr>
                <th>ID</th>
                <th>分类名称</th>
                <th>操作</th>
            </tr>
            {% for nameList in nameList %}
            <tr>
                <td width="120px">{{ nameList.id }}</td>
                <td>{{ nameList.name }}</td>
                <td width="100px">
                    <a href="category/edit?id={{ nameList.id }}">修改</a> | <a onclick="return confirm('确定删除吗？');"  href="category/del?id={{ nameList.id }}">删除</a>
                </td>
            </tr>
            {% endfor %}
        </table>
    </div>
    {% include '../common/pages.html' %}

</div>
{% endblock %}